import config from '@/utils/config'
import { generateRequest } from '@/utils/request'
const { apiUrlPrefix } = config

/** 陪护流程列表 */
export const companionFlowListApi = generateRequest(`${apiUrlPrefix}/pcs/companionFlow/list`)

/** 新增陪护流程 */
export const createCompanionFlowApi = generateRequest(`${apiUrlPrefix}/pcs/companionFlow`)

/** 陪护流程修改 */
export const updateCompanionFlowApi = generateRequest(`${apiUrlPrefix}/pcs/companionFlow/{id}`, 'put')

/** 陪护流程删除 */
export const deleteCompanionFlowApi = generateRequest(`${apiUrlPrefix}/pcs/companionFlow/{id}`, 'delete')

/** 陪护流程详情 */
export const getCompanionFlowApi = generateRequest(`${apiUrlPrefix}/pcs/companionFlow/{id}`, 'get')
